//
//  HMHomeController.swift
//  weibo
//
//  Created by 杨念川 on 16/8/29.
//  Copyright © 2016年 杨念川. All rights reserved.
//

import UIKit

class HMHomeController: HMVistorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        if userLogin == false {
           visitorView.visorViewSetVlaue(imageName: nil, message: "关注一些人，回这里看看有什么惊喜")
            return
        }
        setupUI()
    }
    //初始化UI
    private func setupUI() {
        navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "navigationbar_friendsearch", target: nil, action: nil)
        navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: "navigationbar_pop", target: self, action: #selector(push))
        //设置访客页面
        
    }
    func push() {
        let vc = HMViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
}
